package com.example.demo.service;

import com.example.demo.dao.TbUserMapper;
import com.example.demo.entity.TbUser;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
/**
 * @author Mark
 * @date  2020/5/30 18:35
 * @description ${description}
 */

@Service
public class TbUserService{

    @Resource
    private TbUserMapper tbUserMapper;

    
    public int deleteByPrimaryKey(String userNo) {
        return tbUserMapper.deleteByPrimaryKey(userNo);
    }

    
    public int insert(TbUser record) {
        return tbUserMapper.insert(record);
    }

    
    public int insertSelective(TbUser record) {
        return tbUserMapper.insertSelective(record);
    }

    
    public TbUser selectByPrimaryKey(String userNo) {
        return tbUserMapper.selectByPrimaryKey(userNo);
    }

    
    public int updateByPrimaryKeySelective(TbUser record) {
        return tbUserMapper.updateByPrimaryKeySelective(record);
    }

    
    public int updateByPrimaryKey(TbUser record) {
        return tbUserMapper.updateByPrimaryKey(record);
    }

}
